package com.itheima.d10_io_data;

import javax.xml.crypto.Data;
import java.io.DataOutputStream;
import java.io.FileOutputStream;

/**
 * 目标：了解打印流的基本使用
 */
public class Test {

    public static void main(String[] args) {
        try (
                DataOutputStream dos = new DataOutputStream(
                        new FileOutputStream("day11_io\\src\\com\\itheima\\d10_io_data\\yang.txt"));

                ){

            dos.writeByte(97);
            dos.writeUTF("你好");
            dos.writeInt(666);
            dos.writeDouble(1.68);

        } catch (Exception e) {
            throw new RuntimeException(e);
        }


    }
}
